<?php
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');

class DocarioViewCategory extends JView {

    function display($tpl = null) {
        JToolBarHelper::title(JText::_('COM_DOCARIO_CATEGORIES'));
        
        JToolBarHelper::addNewX('addcategory');
        JToolBarHelper::editList('editcategory');
        JToolBarHelper::deleteList('deletecategory');
        
        JToolBarHelper::divider();
        JToolBarHelper::publish();
        JToolBarHelper::unpublish();
        
        JToolBarHelper::divider();
        JToolBarHelper::preferences('com_docario');
        
        $model = $this->getModel();
        $pagination = $model->getPagination();
        $data = $model->getData();
        
        $this->assignRef('data', $data);
        $this->assignRef('pagination', $pagination);
    
        parent::display();
    }
}
?>
